﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DeliverAreaManager.aspx.cs"
    Inherits="Admin_DeliverAreaManager" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>配送区域管理</title>
    <link href="AdminCSS/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        区域名称：<asp:DropDownList ID="drpRegion" runat="server">
        </asp:DropDownList>
        商圈名称：
        <asp:DropDownList ID="drpBusinessDistrictId" runat="server">
        </asp:DropDownList>
        写字楼名称：
        <asp:DropDownList ID="drpOfficeId" runat="server">
        </asp:DropDownList>
        <asp:Button runat="server" Text="添加" ID="btnAdd" onclick="btnAdd_Click" />
        <asp:Button ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" />
        <table border="0" cellpadding="0" cellspacing="1" width="100%" style="background: Black;">
            <tr style="height: 27px">
                <td align="center" style="background: #DFDEDC;">
                    Id
                </td>
                <td align="center" style="background: #DFDEDC;">
                    楼层名称
                </td>
                <td align="center" style="background: #DFDEDC;">
                    默认公司名
                </td>
                <td align="center" style="background: #DFDEDC;">
                    排序号
                </td>
                <td align="center" style="background: #DFDEDC;">
                    操作
                </td>
            </tr>
            <asp:Repeater ID="rptDeliveryArea" runat="server" OnItemCommand="rptDeliveryArea_ItemCommand">
                <ItemTemplate>
                    <tr style="background: White; height: 27px;">
                        <td align="center">
                            <%#Eval("Id") %>
                        </td>
                        <td align="center">
                            <%#Eval("DeliveryAreaName")%>
                        </td>
                        <td align="center">
                            <%#Eval("DefaultCompanyName")%>
                        </td>
                        <td align="center">
                            <%#Eval("OrderValue")%>
                        </td>
                        <td align="center">
                            <asp:Button ID="btnDelete" Text="删除" OnClientClick="return confirm('确认删除？');" CommandArgument='<%#Eval("Id")%>' CommandName="Del"
                                runat="server" />
                            <asp:Button ID="btnEdit" Text="编辑" CommandArgument='<%#Eval("Id")%>' CommandName="Edit"
                                runat="server" />
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
    </div>
    </form>
</body>
</html>
